package com.wuxx.quartz.trigger;

import com.wuxx.quartz.model.TimingModel;
import com.wuxx.quartz.model.TriggerType;
import org.quartz.Trigger;

/**
 *
 * 抽象触发器
 * @date 2022/06/08 10:17
 * @author wuxx
 */
public interface ITriggerFactory {

    /**
     * 判断是否为该类型的触发器
     *
     * @param triggerType 触发器类型
     * @return boolean 如果是该类型的触发器返回true 否则返回false
     * @author YuanXiaohan
     * @date 2021/12/16 2:33 下午
     */
     boolean check(TriggerType triggerType);


     Trigger build(TimingModel timingModel);
}
